import Vue from 'vue';
import Vuex from 'vuex';
import home from './modules/home';
import search from './modules/search';
import detail from './modules/detail';
import shopcart from './modules/shopcart';
import user from './modules/user';
import center from './modules/center';
import trade from './modules/trade'
Vue.use(Vuex);
export default new Vuex.Store({
    state:{
        keyword:''
    },
    mutations:{
        updateKeyword(state,keyword){
            state.keyword=keyword
        }
    },
    actions:{},
    getters:{},
    modules:{
        home,
        search,
        detail,
        shopcart,
        user,
        center,
        trade
    }
})